toolbar: Remove gdk_flush() calls
authorBenjamin Otte <otte@redhat.com>
Fri, 17 Nov 2017 06:51:22 +0000 (07:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 17 Nov 2017 07:07:27 +0000 (08:07 +0100)
It's not 2003 anymore.

gtk/gtktoolbar.c

index b01243f938645b8ded353c3265ac4030b278c6db..681ef30504c09077e06d8cf5d14e33261cf8462d 100644 (file)
@@ -144,7 +144,6 @@ struct _GtkToolbarPrivate
   guint            animation : 1;
   guint            is_sliding : 1;
   guint            need_rebuild : 1;  /* whether the overflow menu should be regenerated */
-  guint            need_sync : 1;
   guint            show_arrow : 1;
   guint            style_set     : 1;
 };
@@ -895,12 +894,6 @@ slide_idle_handler (gpointer data)
   GtkToolbarPrivate *priv = toolbar->priv;
   GList *list;
 
-  if (priv->need_sync)
-    {
-      gdk_flush ();
-      priv->need_sync = FALSE;
-    }
-  
   for (list = priv->content; list != NULL; list = list->next)
     {
       ToolbarContent *content = list->data;
@@ -1479,8 +1472,6 @@ gtk_toolbar_size_allocate (GtkWidget           *widget,
                                                &start_allocation,
                                                &goal_allocation,
                                                &alloc);
-
-              priv->need_sync = TRUE;
             }
           else
             {